<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta charset="UTF-8" >
		<title>修改页面</title>
	</head>
	<body>
		<form method="post" action="/food/updatefood" enctype="multipart/form-data">
			<table border="1" width="599">
			<tr><td colspan="2" align="center">修改美食</td></tr>
			<tr>
				<td>名称:</td>
				<td><input type="hidden" th:value="${food.fid}" name="fid">
					<input type="text" name="fname" th:value="${food.fname}" /></td>
			</tr>
			<tr>
				<td>分类:</td>
				<td>
					<select name="tid" class="dfinput">
						<option value="-1">请选择</option>
						<option th:each="type:${typeList}" th:value="${type.tid}" th:selected="${type.tid} eq ${food.tid}">[(${type.tname})]</option>
					</select>
				</td>
			</tr>
			<tr><td>
				图片:</td><td>
				<input type="file" name="file" /><img th:src="@{|/${food.fimage}|}" width="50px">
			</td></tr>
			<tr>
				<td colspan="2"><input type="submit" value="修改" /><input type="reset" value="重置" /></td>
			</tr>
			</table>
		</form>
	</body>
</html>
